<?php

array(
  'consumer_key'    => 'RxLCyWl5zSeQ08xNqYEWg',
  'consumer_secret' => 'DRkQngcyG0qnim1H6koeKJesaWRbcDqDG9pXNQM',
  'user_token'      => '78549717-vjJCPEjy8zSOtj4wFFEh7z0dsai3osxdTpAp7qsBF',
  'user_secret'     => 'stGWJNH0pdmmHsc4wrf2zu7mMPwooFTwvN7niWJjwo',
);

require './lib/twitter/TmhOAuth.php';
require './lib/twitter/TmhUtilities.php';

$config['consumer_key'] = "RxLCyWl5zSeQ08xNqYEWg";
$config['consumer_secret'] = "DRkQngcyG0qnim1H6koeKJesaWRbcDqDG9pXNQM";
$config['access_token'] = "78549717-vjJCPEjy8zSOtj4wFFEh7z0dsai3osxdTpAp7qsBF";
$config['access_secret'] = "stGWJNH0pdmmHsc4wrf2zu7mMPwooFTwvN7niWJjwo";

$tmhOAuth = new TmhOAuth();
print_r($tmhOAuth);
$code = $tmhOAuth->request('POST', $tmhOAuth->url('1/statuses/update'), array('status' => 'My First Automated Twitter Message'));

        if ($code == 200) {
          TmhUtilities::pr(json_decode($tmhOAuth->response['response']));
        } else {
          TmhUtilities::pr($tmhOAuth->response['response']);
        }
?>
